how to use naiveproxy with docker on centos7¶
prepare configuration files
sysctl -w net.core.rmem_max=2500000 && mkdir -p /etc/naiveproxy/ cat << EOF > /etc/naiveproxy/Caddyfile { admin off log { output file /var/log/caddy/access.log level INFO } servers :443 { protocols h1 h2 h3 } } :80 { redir https://{host}{uri} permanent } :443, chenshi.de tls [email protected] route { forward_proxy { basic_auth chenshi chenshi.de hide_ip hide_via probe_resistance wai8iequ8Eneuy3ohf.com # generate with pwgen } file_server { root /var/www/html # generate with hugo } } EOFstart service
docker run --network host --name naiveproxy -v /etc/naiveproxy:/etc/naiveproxy -v /var/www/html:/var/www/html -v /var/log/caddy:/var/log/caddy -e PATH=/etc/naiveproxy/Caddyfile --restart=always -d pocat/naiveproxyreferences: